using Abp.Authorization.Users;
using System.ComponentModel.DataAnnotations;
using Abp.Auditing;
using System.ComponentModel;
using System;

namespace Yozeev.Auditing.Dtos
{
    /// <summary>
    /// 显示登录信息
    /// </summary>
    public class LoginLogModel
    {
        /// <summary>
        /// 用户名或邮箱
        /// </summary>
        public string UserNameOrEmailAddress { get; set; }
        /// <summary>
        /// 登录端
        /// </summary>
        public string SourceName { get; set; }
        /// <summary>
        /// 登录端编码
        /// </summary>
        public string SourceCode { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string ClientIpAddress { get; set; }

        /// <summary>
        ///     执行时间
        /// </summary>
        public DateTime ExecutionTime { get; set; }
        /// <summary>
        ///     是否包含异常
        /// </summary>
        public bool HasException { get; set; }
        /// <summary>
        ///     异常
        /// </summary>
        public string Exception { get; set; }

    }
}
